

@RestController
@RequestMapping("/rmsCleaningRuleConfig")
public class RmsCleaningRuleConfigController {

    @Resource
    private RmsCleaningRuleConfigService rmsCleaningRuleConfigService;


    /**
     * 获取 RmsCleaningRuleConfig 分页列表
     */
    @GetMapping("/pagination")
    public Ret getRmsCleaningRuleConfigPagination( PaginationVo paginationVo, RmsCleaningRuleConfigQuery rmsCleaningRuleConfigQuery ) throws Exception {
        IPage page = rmsCleaningRuleConfigService.getRmsCleaningRuleConfigPagination(paginationVo, rmsCleaningRuleConfigQuery );
        return Ret.toPage(page);
    }


    /**
     * 获取 RmsCleaningRuleConfig 所有数据
     */
    @GetMapping("/all")
    public Ret getRmsCleaningRuleConfigAllList( RmsCleaningRuleConfigQuery rmsCleaningRuleConfigQuery ) throws Exception {
        List<RmsCleaningRuleConfigEntity> list = rmsCleaningRuleConfigService.getRmsCleaningRuleConfigAllList( rmsCleaningRuleConfigQuery );
        return Ret.ok(list);
    }



    /**
     * 获取 RmsCleaningRuleConfig 详情
    */
   @GetMapping("/{id}")
   public Ret getRmsCleaningRuleConfigDetail(@PathVariable Long id) throws Exception {

       RmsCleaningRuleConfigEntity rmsCleaningRuleConfig = rmsCleaningRuleConfigService.getRmsCleaningRuleConfigDetail(id);
       return Ret.ok(rmsCleaningRuleConfig);
   }


    /**
     * 新增 RmsCleaningRuleConfig
     * */
    @PostMapping("")
    public Ret addRmsCleaningRuleConfig(@RequestBody RmsCleaningRuleConfigVo rmsCleaningRuleConfigVo) throws Exception {

        rmsCleaningRuleConfigService.addRmsCleaningRuleConfig(rmsCleaningRuleConfigVo);
        return Ret.ok();
    }


    /**
     * 更新 RmsCleaningRuleConfig
     * */
    @PutMapping("")
    public Ret updateRmsCleaningRuleConfig(@RequestBody RmsCleaningRuleConfigVo rmsCleaningRuleConfigVo) throws Exception {

        rmsCleaningRuleConfigService.updateRmsCleaningRuleConfig(rmsCleaningRuleConfigVo);
        return Ret.ok();
    }


    /**
     * 删除 RmsCleaningRuleConfig
     * */
    @PostMapping("/batchRemove")
    public Ret batchRemoveRmsCleaningRuleConfig( @RequestBody List<Long> ids ) throws Exception {

        rmsCleaningRuleConfigService.batchRemoveRmsCleaningRuleConfig(ids);
        return Ret.ok();
    }
}

  